package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.ApartmentInfo;
import com.atguigu.lease.web.app.vo.apartment.ApartmentDetailVo;
import com.atguigu.lease.web.app.vo.apartment.ApartmentItemVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
* @author xiongkunYang
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Mapper
* @createDate 2025-04-19 22:27:34
* @Entity com.atguigu.lease.model.entity.ApartmentInfo
*/
@Mapper
public interface ApartmentInfoMapper extends BaseMapper<ApartmentInfo> {
    /**
     * 根据公寓id查询公寓信息
     *
     * @param id 公寓id
     * @return 公寓信息
     */
    ApartmentItemVo selectApartmentItemById(Long id);

    /**
     * 根据公寓id查询公寓详细信息
     *
     * @param id 公寓id
     * @return 封装了公寓详细信息的VO对象
     */
    ApartmentDetailVo selectApartmentDetailById(Long id);
}




